package com.base.myproject.client.tools;

import java.io.Serializable;
import java.util.LinkedList;
import java.util.List;

import com.base.myproject.client.busi.service.AssociatorX;
import com.base.myproject.client.busi.service.PayItem;
/**
 * 提交类容要包括会员卡号或电话号码或姓名
 * 付款或者查询会员账户余额时候用
 * 如果设置setContinueorrollback 为false，那么在付款的时候如果
 * 某账户余额不足，则跳出命令
 * mode 1 为根据ccode查找 2 为根据name查找 3 为根据phone查找 4 为根据s_cardno查找
 * @author Administrator
 *2010-5-26
 * javazgw@gmail.com
 */
public class CommandSyncPay extends CommandSync implements Serializable{

	
	/**
	 * 
	 */
	private static final long serialVersionUID = 5491919982035897240L;
	//List<PayItem> paylist =new LinkedList<PayItem>();
	String ccode;
	String password;
	
	int mode;
	
	AssociatorX associatorx = new AssociatorX();
	
	public CommandSyncPay() {
		commandname="CommandSyncPay";
	}
	public List<PayItem> getPaylist() {
		return associatorx.getPaylist();
//		return paylist;
	}
	public void setPaylist(List<PayItem> paylist) {
		associatorx.setPaylist(paylist);
//		this.paylist = paylist;
	}
	public String getCcode() {
		return ccode;
	}
	public void setCcode(String ccode) {
		this.ccode = ccode;
	}
	public int getMode() {
		return mode;
	}
	public void setMode(int mode) {
		this.mode = mode;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	
	
}
